package com.red.star.macalline.data.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

/**
 * @author nofish.yan@gmail.com
 * @date 2018/5/3.
 * 聊天消息通知记录
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_chat_notice_log")
public class ChatNoticeLog extends BaseEntity {

    /**
     * 消息发送者粉丝ID
     */
    private Integer fromFansId;

    /**
     * 消息接收者粉丝ID
     */
    private Integer toFansId;

    /**
     * 0:模板消息 1:短信
     */
    private Integer type;

    /**
     * 通知内容
     */
    private String content;

    /**
     * Employee表ID(B端用户)
     */
    private Integer employeeId;

    /**
     * 发送结果状态
     */
    private Boolean status;

    /**
     * 发送结果描述
     */
    private String result;

    /**
     * 通知接受者openId
     */
    private String receiveOpenId;

    /**
     * 聊天会话ID
     */
    private String chatSessionId;

    /**
     * 商场code
     */
    private String mallCode;

    /**
     * 组ID
     */
    private Integer groupId;

    /**
     * 聊天类型
     */
    private Integer chatType;
}
